/*
 * Created on 09-sep-2004
 */
package guru.merlin.core;

/**
 * @author cobach
 */
public abstract class AbstractEnvelopeProcessor implements EnvelopeProcessor {
    EnvelopeHandler handler;

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#openConnection(java.lang.String)
     */
    public void openConnection(String parametersFilePath) throws EPException {

    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#closeConnection()
     */
    public void closeConnection() throws EPException {

    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#addEnvelopeHandler(guru.merlin.core.EnvelopeHandler)
     */
    public void addEnvelopeHandler(EnvelopeHandler h) {
        handler = h;
    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#getEnvelopeHandler()
     */
    public EnvelopeHandler getEnvelopeHandler() {
        return handler;
    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#start()
     */
    public void start() throws EPException{
    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#stop()
     */
    public void stop() {
    }

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeProcessor#areYouAlive()
     */
    public boolean areYouAlive() {
        return true;
    }
    
    public boolean isConnected() {
        return true;
    }    

    /*
     * (non-Javadoc)
     * 
     * @see guru.merlin.core.EnvelopeHandler#handEnvelope(guru.merlin.common.Envelope)
     */
    //abstract public void handEnvelope(Envelope envelope) throws CantHandException;
    //abstract public Object handEnvelope(Envelope envelope) throws CantHandException;

}
